package com.cch.check.controller;

import com.aaa.entity.CheckItem;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cch.check.service.CheckItemService;
import com.cch.check.vo.InterCheckVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 检查费用表(SysCheckItem)表控制层
 *
 * @author makejava
 * @since 2023-03-24 17:32:14
 */
@RestController
@RequestMapping("check/checkItem")
public class CheckItemController {
    /**
     * 服务对象
     */
    @Autowired
    private CheckItemService checkItemService;



    //查询所有检查
    @GetMapping("selectAllCheckItem")
    public Result<List<CheckItem>> selectAllCheckItem (){
        return checkItemService.selectAllCheckItem();
    }


    @PostMapping("listcheck")
    public Page<CheckItem> selectcheck(@RequestBody InterCheckVo interCheckVo){
        return checkItemService.selectcheck(interCheckVo);
    }


}
